//
//  BaseViewController+xx_gestureManager.m
//  dyss_v2
//
//  Created by LXF on 16/4/5.
//  Copyright © 2016年 First Facility. All rights reserved.
//

#import "BaseViewController+xx_gestureManager.h"

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
@implementation BaseViewController (xx_gestureManager)
-(BOOL)enabledInteractivePopGesture{
    SEL sel = @selector(enabledInteractivePopGesture);
    if ([self.weakNavigationController respondsToSelector:sel]){
        return [[self.weakNavigationController valueForKey:@"enabledInteractivePopGesture"] boolValue];
    }
    return NO;
}
-(void)setEnabledInteractivePopGesture:(BOOL)enabledInteractivePopGesture{
    SEL sel = @selector(setEnabledInteractivePopGesture:);
    if ([self.weakNavigationController respondsToSelector:sel]){
        [self.weakNavigationController setValue:@(enabledInteractivePopGesture) forKey:@"enabledInteractivePopGesture"];
    }
}
-(BOOL)enabledInteractivePopGesture_FULL{
    SEL sel = @selector(enabledInteractivePopGesture_FULL);
    if ([self.weakNavigationController respondsToSelector:sel]){
        return [[self.weakNavigationController valueForKey:@"enabledInteractivePopGesture_FULL"] boolValue];
    }
    return NO;
}
-(void)setEnabledInteractivePopGesture_FULL:(BOOL)enabledInteractivePopGesture_FULL{
    SEL sel = @selector(setEnabledInteractivePopGesture_FULL:);
    if ([self.weakNavigationController respondsToSelector:sel]){
        [self.weakNavigationController setValue:@(enabledInteractivePopGesture_FULL) forKey:@"enabledInteractivePopGesture_FULL"];
    }
}

-(void)popGestureIgnoreViewsAdd:(UIView *)view{
    SEL sel = @selector(popGestureIgnoreViewsAdd:);
    if ([self.weakNavigationController respondsToSelector:sel]){
        [self.weakNavigationController performSelector:sel withObject:view];
    }
}

@end
#pragma clang diagnostic pop
